Skip to content

PHPLIB-104: Operation classes for some commands #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Jun 18, 2015

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented May 7, 2015

@bjori
Copy link
Contributor

bjori commented May 7, 2015

That's hot!

}

/**
* @param boolean $isCursorSupported
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was leftover from when the wire version check was in execute() (before I moved it to createCommand()).

@jmikola jmikola force-pushed the phplib-104 branch 2 times, most recently from 00fe7eb to eda9c3c Compare June 10, 2015 20:50
*/
class Aggregate implements Executable
{
private static $wireVersionForCursor = 2;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before you ask, this is the closest thing to a private constant. I'd rather not have this in the public API.

@jmikola jmikola force-pushed the phplib-104 branch 6 times, most recently from eba5c16 to f4a450e Compare June 16, 2015 20:25
@bjori
Copy link
Contributor

bjori commented Jun 16, 2015

lgtm

@jmikola jmikola changed the title [WIP] PHPLIB-104: Operation classes PHPLIB-104: Operation classes for queries and commands Jun 16, 2015
@jmikola jmikola force-pushed the phplib-104 branch 3 times, most recently from ebc4ff1 to 3cb9adc Compare June 17, 2015 17:44
@@ -42,6 +46,7 @@ protected function getServerVersion(ReadPreference $readPreference = null)
$readPreference ?: new ReadPreference(ReadPreference::RP_PRIMARY)
);

$cursor->setTypeMap(array('document' => 'array'));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@derickr: This should address the error you were seeing.

@jmikola jmikola force-pushed the phplib-104 branch 3 times, most recently from 7790bd3 to 6bdecdb Compare June 17, 2015 20:49
@jmikola jmikola changed the title PHPLIB-104: Operation classes for queries and commands PHPLIB-104: Operation classes for some commands Jun 18, 2015
jmikola added 7 commits June 18, 2015 13:31
Invalid arguments and options constitute a logic error, so InvalidArgumentTypeException may be used. For runtime errors (e.g. server returned something we didn't expect), UnexpectedValueTypeException may be used.
Additionally, this changes createIndexes() to no longer allow an empty array as input. The index management spec doesn't state that empty input must be accepted, so I'm not sure why we had that behavior.
@jmikola jmikola merged commit cab405d into mongodb:master Jun 18, 2015
jmikola added a commit that referenced this pull request Jun 18, 2015
@jmikola jmikola deleted the phplib-104 branch June 18, 2015 17:32
GromNaN added a commit to GromNaN/mongo-php-library that referenced this pull request Sep 9, 2024
* Use BSON round-trip to normalize pipelines for comparison
* Use Canonical Extended JSON
* Fix $regex comparison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants